﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceProcess;

using FoxConn.Lib.Winform;
using OracleToInformix.Source;

namespace OracleToInformix
{
    class Program
    {
        static void Main(string[] args)
        {
            XMLutil xmlOperator = new XMLutil();
            string strDebug = xmlOperator.GetXMLParameter("Debug");

            Config.DEBUG = strDebug.Trim();

            if (Config.DEBUG.Equals("1"))
            {
                MainFunction mf = new MainFunction();
                mf.OracleToInformix();
            }
            else
            {
                ServiceBase[] serviceBase = new ServiceBase[] { new HrService() };
                ServiceBase.Run(serviceBase);
            }
        }
    }
}
